package cn.libinal.scloud.base.service.impl;

import cn.libinal.scloud.base.common.service.impl.AbstractJpaServiceImpl;
import cn.libinal.scloud.base.entity.Client;
import cn.libinal.scloud.base.repository.ClientRepository;
import cn.libinal.scloud.base.service.ClientService;
import com.querydsl.core.types.Predicate;
import org.springframework.stereotype.Service;

/**
 * @author libin
 */
@Service
public class ClientServiceImpl extends AbstractJpaServiceImpl<Client, ClientRepository> implements ClientService {


    public ClientServiceImpl(ClientRepository repository) {
        super(repository);
    }

    @Override
    public Client findClientByClientId(String clientId) {
        return repository.findByClientId(clientId);
    }

    @Override
    public Predicate buildPagingPredicates(Client client) {
        return null;
    }
}
